package com.atguigu.provider.ticket.controller;

import com.atguigu.provider.ticket.service.TicketService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : leimingchao
 * @date Date : 2021年10月29日 21:46
 */
@RestController
public class TicketController {

    @Autowired
    private TicketService ticketService;

    @GetMapping(value = "/ticket")
    public String getTicket() {
        System.out.println("8002");
        return ticketService.getTicket();
    }
}
